'use strict';

const Controller = require('egg').Controller;

class GetaccountController extends Controller {
  async showAllAccount() {
    const { ctx } = this
    const { result } = await ctx.service.user.showAllUsers()
    ctx.body = {
      code: 1,
      result
    }
  }
}

module.exports = GetaccountController;
